package com.coincalf.admin.service.impl;

import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.coincalf.admin.entity.AccountDetail;
import com.coincalf.admin.mapper.AccountDetailMapper;
import com.coincalf.admin.service.AccountDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 资金账户流水 服务实现类
 * </p>
 *
 * @author qiang
 * @since 2018-05-16
 */
@Service
public class AccountDetailServiceImpl extends ServiceImpl<AccountDetailMapper, AccountDetail> implements AccountDetailService {
    @Autowired
    private AccountDetailMapper accountDetailMapper;

    @Override
    public Page<AccountDetail> selectListPage(Page<AccountDetail> page, Wrapper<AccountDetail> wrapper) {
        wrapper = (Wrapper<AccountDetail>) SqlHelper.fillWrapper(page, wrapper);
        page.setRecords(this.accountDetailMapper.selectListPage(page, wrapper));
        return page;
    }

}
